'''
Created on 22/04/2010
First in first out
@author: Mar
'''

from Scheduler import Scheduler
import queue
import OS

class FF (Scheduler):
    
    def __init__(self,aSO):
        self.SO = aSO
        self.readyQueue=queue.Queue()
        self.SO.setReadyQueue(self.readyQueue) # alSO le paso la cola como parametro
    
    def addPCB(self,aPCB,aQueue): #se viene double dispatching
        aQueue.put(aPCB)
    #next pcb esta definido en scheduler, estaba al dope sino
    #def nextProgram (self):
     #   x = self.readyQueue.get()
      #  return x